<!-- <style scoped src="./index.scss" lang="scss" rel="stylesheet/scss"></style> -->
<template src="./index.html"></template>
<script>
    import Edit from "./../edit/index";

    export default {
        mixins: [Vue.prototype.$vFN.Mixins.Base, Vue.prototype.$vFN.Mixins.Page, Vue.prototype.$vFN.Mixins.Table],
        data() {
            return {
                appWindow: window,
                // 页面接口地址
                apiUrl: {
                    list: "store/admin/index",
                    delete: "store/admin/del",
                },
                // 表格查询数据
                mixinTable_tableSearchData: {
                    mobile: "",
                },
                // 表格数据删除展示结构
                tableDeleteConfig: {
                    columns: [{
                            label: "姓名",
                            prop: "username",
                            type: ""
                        },
                        {
                            label: "手机号",
                            prop: "mobile",
                            type: ""
                        },
                        {
                            label: "所属角色",
                            prop: "role_name",
                            type: ""
                        },
                    ],
                },



            };
        },
        methods: {
            // 打开添加/修改
            editBoxOpen(params_) {

                Edit.init({
                    mixinEdit_parent:this,
                    mixinEdit_editType: params_.type,
                    id: params_.id,
                })
            },

            // 初始化
            async init() {

                // 刷新表格数据，此方法扩展时可重写
                this.mixinTable_refreshData();
            },


        },
        mounted() {
            this.init();

        },
        activated() {},
    };
</script>
